
<?php
$link = new mysqli($_POST['url'],$_POST['username'],$_POST['password'],"",$_POST['port']);
if($link->connect_error){
  echo 0;
}else{
  echo 1;
}
?>